Strings are contiguous or connected to each other

Strings explained in depth

Created: 2022-06-18
Tags: #permanent


The variables value is the address of the first character.
Then increments the address by +1 until it reaches a certain address that has a value of \0.

  • For example string Hi
  • char "H" is 0x123,
  • "i" is 0x124
  • "\0" so it is 0x125 because all strings end with "\0".

References